package com.hualan.service;

import com.hualan.pojo.Article;
import com.hualan.pojo.PageResult;
import com.hualan.pojo.Result;

import java.util.List;

public interface ArticleService {
    PageResult getArticlesByTitle(String title,Integer userId,Integer page, Integer pageSize);
    Result addArticle(Article article);
    Result updateArticle(Article article);
    Result deleteArticles(List<Integer> ids);
    PageResult getArticlesByUserId(Integer userId, Integer page, Integer pageSize);
    List<Article> find(Integer id);
}
